<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/template/common/taglibs.jspf" %>
<es:contentHeader/>

<t:base type="jquery,jquery-ui-bootstrap:bootstrap,jquery-ui-bootstrap:jquery-ui,query-ui-bootstrap:jquery.layout,jquery-ui-bootstrap:font-awesome"></t:base>
<t:base type="jquery-ui-bootstrap:jquery.blockUI,jquery-ui-bootstrap:bootstrap.file-input,bootstrap-datetimepicker,nicescroll,jqueryValidate,application"></t:base>




<input type="text" id="username" class="input-medium" placeholder="输入用户名 检索用户编码">

<input id="ids" type="text" >



<es:contentFooter/>


<script type="text/javascript">

    $(function () {
        var $username = $("#username");
        $.app.initAutocomplete({
            input : $username,
            source : "<%=request.getContextPath() %>/admin/sys/user/ajax/autocomplete",
            select : function(event, ui) {
                var $ids = $("#ids");
                var ids = $ids.val();
                ids = (ids ? ids : "") + (ids ? "," : "") + ui.item.value;
                $ids.val(ids);
                $username.val("");
                return false;
            }
        });
    });
</script>